package model

import "gitee.com/yysf_xin/go-common/db"

type Supplier struct {
	db.Model
	Name      string
	Type      string
	AppId     string
	AppKey    string
	AppSecret string `gorm:"size:512"`
	GrantType string
	Config    string `gorm:"size:512"`
	Url       string `gorm:"size:256"`
}

type Template struct {
	db.Model
	Code       string `gorm:"index;"`
	Type       string
	Title      string
	Content    string `gorm:"size:1024"`
	Url        string `gorm:"size:256"`
	SupplierId uint
	Supplier   *Supplier
}
